package com.bingfor.easycablelink.product.viewModel;

import com.bingfor.easycablelink.base.BaseActivity;
import com.bingfor.easycablelink.my.ShoppingCartActivity;
import com.bingfor.easycablelink.product.ConfirmOrderActivity;
import com.bingfor.easycablelink.widgets.ServiceDialog;
import com.bingfor.easycablelink.widgets.ViewModel;

/**
 * Created by LY on 2017/5/27.
 */

public class ProductDetailViewModel implements ViewModel {

    public BaseActivity mContent;

    public ProductDetailViewModel(BaseActivity mContent) {
        this.mContent = mContent;
    }


    public void toNextPage(int page){
        switch (page){
            case 0:
                mContent.showSnakeBar("加入购物车.>>>");
                break;
            case 1:
                mContent.moveToNextPage(ConfirmOrderActivity.class);
                break;
        }
    }
}
